<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        :root {
            box-sizing: border-box;
        }
        *, ::before,::after {
            box-sizing: inherit;
        }
        body {
            background-color: #709b90;
            font-family: Arial, Helvetica, sans-serif;
        }

        body * + * {
            margin-top: 1.5em;
        }

        .container {
            max-width: 1080px;
            margin: 0 auto;
        }

        /* 指定弹性容器 */
        .site-nav {
            display: flex;
            padding: .5em;
            list-style-type: none;
            background-color: #5f4b44;
        }

        /* 覆盖猫头鹰选择器 */
        .site-nav > li {
            margin-top: 0;
        }

        .site-nav > li > a {
            /* 变成块元素,撑开父元素高度 */
            display: block;
            /* 添加内边距 */
            padding: .5em 1em;
            background-color: #cc6b5a;
            color: white;
            text-decoration: none;
        }

        /* 除了第一项的其它项 */
        .site-nav > li + li {
            margin-left: 1.5em;
        }

        /* 让外边距填充所有空间,可以将元素顶到右边 */
        .site-nav > .nav-right {
            margin-left: auto;
        }

        /* 给3个板块添加背景色 */
        .tile {
            padding: 1.5em;
            background-color: #fff;
        }

        /* 主容器设置为flex */
        .flex { 
            display: flex;
        }

        /* 移除顶部外边距,加上间隔 */
        .flex > * + * {
            margin-top: 0;
            margin-left: 1.5em;
        }

        .column-main {
            /* flex 简写值, 相当于 flex-grow 2, flex-shrink: 1; flex-basis: 0%; */
            flex: 2;
        }

        .column-sidebar {
            flex: 1;
        }

        /* 标题设置右对齐,加粗,全大写 */
        .login-form h3 {
            margin: 0;
            font-size: .9em;
            font-weight: bold;
            text-align: right;
            text-transform: uppercase;
        }

        /* 不包含复选框和单选框的input */
        .login-form input:not([type=checkbox]):not([type=radio]) {
            display: block;
            width: 100%;
            margin-top: 0;
        }
        
        .login-form button {
            margin-top: 1em;
            border: 1px solid #cc6b5a;
            background-color: white;
            padding: .5em 1em;
            cursor: pointer;
        }

        .centered {
            text-align: center;
        }

        .cost {
            display: flex;
            /* 让弹性子元素在主副轴上都居中 */
            justify-content: center;
            align-items: center;
            line-height: .7;
        }

        /* 覆盖猫头鹰选择器的外边距,设置完毕后$和20.00在一行线上 */
        .cost > span {
            margin-top: 0;
        }

        .cost-currency {
            font-size: 2rem;
        }
        .cost-dollars {
            font-size: 4rem;
        }
        .cost-cents {
            font-size: 1.5rem;
            /* 单独设置此子元素的副轴对齐,从居中改为上部 */
            align-self: flex-start;
        }

        .cta-button {
            display: block;
            background-color: #cc6b5a;
            color: white;
            padding: .5em 1em;
            text-decoration: none;
        }


    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>Ink</h1>
        </header>
        <nav>
            <ul class="site-nav">
                <li><a href="/">Home</a></li>
                <li><a href="/features">Features</a></li>
                <li><a href="/pricing">Pricing</a></li>
                <li><a href="/support">Support</a></li>
                <li class="nav-right"><a href="/about">About</a></li>
            </ul>
        </nav>

        <main class="flex">
            <div class="column-main tile">
                <h1>Team</h1>
                <p>Through</p>
            </div>

            <div class="column-sidebar">
                <div class="tile">
                    <form class="login-form">
                        <h3>Login</h3>
                        <p>
                            <label for="username">UserName</label>
                            <input type="text" id="username" name="username">
                        </p>
                        <p>
                            <label for="password">Password</label>
                            <input type="password" id="password" name="password">
                        </p>
                        <button type="submit">Login</button>
                    </form>
                </div>
                <div class="tile centered">
                    <small>Starting at</small>
                    <div class="cost">
                        <span class="cost-currency">$</span>
                        <span class="cost-dollars">20</span>
                        <span class="cost-cents">.00</span>
                    </div>
                    <a href="/pricing" class="cta-button">Sign up</a>
                </div>
            </div>
        </main>
    </div>
</body>
</html>